package com.wteam.dragon.model.pojo.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.wteam.dragon.model.pojo.bean.Dept;
import com.wteam.dragon.model.pojo.bean.Menu;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Set;

/**
 * @Author 陈晓辉
 * @Date 2020/4/1 19:56
 */
@Data
@TableName("role")
public class RoleDto implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String dataScope;

    private Integer level;

    private String remark;

    private String permission;

    private Timestamp createTime;

    @TableLogic
    private Boolean isDelete;

    @TableField(exist = false)
    private Set<Menu> menus;

    @TableField(exist = false)
    private Set<Dept> depts;

}
